#include "StdAfx.h"
#include "GameStateLose.h"
extern HWND hWnd;

CGameStateLose::CGameStateLose(void)
{
}

CGameStateLose::~CGameStateLose(void)
{
}
CGameStateLose::CGameStateLose(CGameMain *pGameMain)
{
	pGM = pGameMain;
	GameStateID = STATE_LOSE;
}
void CGameStateLose::MessageUpdate( int iKey ) {

}
void CGameStateLose::MessagePaint( HDC* pDC ) {
	Graphics g(*pDC);
	g.DrawImage(bmBkg,0,0,500,502);
}
void CGameStateLose::MessageExit() {

}
void CGameStateLose::MessageEnter (HDC* pDC) {
	SetWindowPos(hWnd,NULL,0,0,WIDTH,HEIGHT,SWP_NOMOVE);
	PlaySound(L"res\\Music\\pushing.wav",NULL, SND_FILENAME | SND_ASYNC);
	bmBkg = new Bitmap(L"res\\Background\\lose.jpg");
}